﻿//-----------------------------------
//Author:Alvin
//Date:12:56:17
//-----------------------------------

using System;
using System.Runtime.InteropServices;
using ZWFrameWork;
using DWORD = System.UInt32;
using WORD = System.UInt16;

[Serializable]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct tagPromptString_L
{
    public DWORD wMoudleIndex;
    public Int32 lStringIndex;

    public byte cbFormatCount;
    //后面接cbFormatCount个tagFormatString
}

[Serializable]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct tagFormatString
{
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
    public string szFormatString;
}

[Serializable]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct tagUserRemoteInfo
{
    //用户信息
    public DWORD dwUserID; //用户标识
    public DWORD dwGameID; //游戏标识

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Protocal.LEN_NICKNAME)]
    public string szNickName; //用户昵称

    public WORD wFaceID; //头像索引

    //等级信息
    public byte cbGender; //用户性别
    public byte cbMemberOrder; //会员等级

    public byte cbMasterOrder; //管理等级

    //位置信息
    public WORD wKindID; //类型标识

    public WORD wServerID;

    //房间标识
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Protocal.LEN_SERVER)]
    public string szGameServer; //房间位置

    //用户状态
    public WORD wTableID; //桌子索引
    public WORD wLastTableID; //游戏桌子
    public WORD wChairID; //椅子索引
    public byte cbUserStatus; //用户状态
};

[Serializable]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct tagPromptStringEx_L
{
    public DWORD wMoudleIndex; //模块索引(0.通用 非0.游戏kindid)
    public int lStringIndex; //描述索引(通用:(0.大赢家) TeenPatti-246:(0.牌型提示))
    public byte cbFormatCount; //占位数目

    public WORD wKindIDIndex; //KindID索引
    //后面接cbFormatCount个tagFormatString
}

//
[Serializable]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct tagPromptString_C
{
    public DWORD wMoudleIndex;
    public Int32 lStringIndex;

    public byte cbFormatCount;
    //后面接cbFormatCount个tagFormatString
}

[Serializable]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct tagPromptStringEx_C
{
    public DWORD wMoudleIndex; //模块索引(0.通用 非0.游戏kindid)
    public int lStringIndex; //描述索引(通用:(0.大赢家) TeenPatti-246:(0.牌型提示))
    public byte cbFormatCount; //占位数目
    public WORD wKindIDIndex; //KindID索引
}